package com.ruoyi.stock2.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 交易数据对象 TRADEDATA
 *
 * @author ruoyi
 * @date 2019-10-21
 */
public class TRADEDATA extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 股票代码 */
    @Excel(name = "股票代码")
    private String symbol;

    /** 交易时间 */
    @Excel(name = "交易时间", width = 30, dateFormat = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date datetime;

    /** 开盘价格 */
    @Excel(name = "开盘价格")
    private BigDecimal dateopenprice;

    /** 最高价格 */
    @Excel(name = "最高价格")
    private BigDecimal highprice;

    /** 最低价格 */
    @Excel(name = "最低价格")
    private BigDecimal lowprice;

    /** 收盘价格 */
    @Excel(name = "收盘价格")
    private BigDecimal closeprice;

    /** 涨 */
    @Excel(name = "涨")
    private BigDecimal zhang;

    /** 涨幅 */
    @Excel(name = "涨幅")
    private BigDecimal zhangfu;

    /** 总金额 */
    @Excel(name = "总金额")
    private BigDecimal amount;

    /** 5日 */
    @Excel(name = "5日")
    private BigDecimal averageprice5;

    /** 10日 */
    @Excel(name = "10日")
    private BigDecimal averageprice10;

    /** 20日 */
    @Excel(name = "20日")
    private BigDecimal averageprice20;

    /** 60日 */
    @Excel(name = "60日")
    private BigDecimal averageprice60;

    /** 交易量 */
    @Excel(name = "交易量")
    private BigDecimal volume;

    /** 5日交易量 */
    @Excel(name = "5日交易量")
    private BigDecimal volume5;

    /** 10日交易量 */
    @Excel(name = "10日交易量")
    private BigDecimal volume10;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSymbol(String symbol)
    {
        this.symbol = symbol;
    }

    public String getSymbol()
    {
        return symbol;
    }
    public void setDatetime(Date datetime)
    {
        this.datetime = datetime;
    }

    public Date getDatetime()
    {
        return datetime;
    }
    public void setDateopenprice(BigDecimal dateopenprice)
    {
        this.dateopenprice = dateopenprice;
    }

    public BigDecimal getDateopenprice()
    {
        return dateopenprice;
    }
    public void setHighprice(BigDecimal highprice)
    {
        this.highprice = highprice;
    }

    public BigDecimal getHighprice()
    {
        return highprice;
    }
    public void setLowprice(BigDecimal lowprice)
    {
        this.lowprice = lowprice;
    }

    public BigDecimal getLowprice()
    {
        return lowprice;
    }
    public void setCloseprice(BigDecimal closeprice)
    {
        this.closeprice = closeprice;
    }

    public BigDecimal getCloseprice()
    {
        return closeprice;
    }
    public void setZhang(BigDecimal zhang)
    {
        this.zhang = zhang;
    }

    public BigDecimal getZhang()
    {
        return zhang;
    }
    public void setZhangfu(BigDecimal zhangfu)
    {
        this.zhangfu = zhangfu;
    }

    public BigDecimal getZhangfu()
    {
        return zhangfu;
    }
    public void setAmount(BigDecimal amount)
    {
        this.amount = amount;
    }

    public BigDecimal getAmount()
    {
        return amount;
    }
    public void setAverageprice5(BigDecimal averageprice5)
    {
        this.averageprice5 = averageprice5;
    }

    public BigDecimal getAverageprice5()
    {
        return averageprice5;
    }
    public void setAverageprice10(BigDecimal averageprice10)
    {
        this.averageprice10 = averageprice10;
    }

    public BigDecimal getAverageprice10()
    {
        return averageprice10;
    }
    public void setAverageprice20(BigDecimal averageprice20)
    {
        this.averageprice20 = averageprice20;
    }

    public BigDecimal getAverageprice20()
    {
        return averageprice20;
    }
    public void setAverageprice60(BigDecimal averageprice60)
    {
        this.averageprice60 = averageprice60;
    }

    public BigDecimal getAverageprice60()
    {
        return averageprice60;
    }
    public void setVolume(BigDecimal volume)
    {
        this.volume = volume;
    }

    public BigDecimal getVolume()
    {
        return volume;
    }
    public void setVolume5(BigDecimal volume5)
    {
        this.volume5 = volume5;
    }

    public BigDecimal getVolume5()
    {
        return volume5;
    }
    public void setVolume10(BigDecimal volume10)
    {
        this.volume10 = volume10;
    }

    public BigDecimal getVolume10()
    {
        return volume10;
    }

    @Override
    public String toString() {
        return "TRADEDATA{" +
                "id=" + id +
                ", symbol='" + symbol + '\'' +
                ", datetime=" + datetime +
                ", dateopenprice=" + dateopenprice +
                ", highprice=" + highprice +
                ", lowprice=" + lowprice +
                ", closeprice=" + closeprice +
                ", zhang=" + zhang +
                ", zhangfu=" + zhangfu +
                ", amount=" + amount +
                '}';
    }

    /**
	 * @param symbol
	 * @param datetime
	 */
	public TRADEDATA(String symbol, Date datetime) {
		this.symbol = symbol;
		this.datetime = datetime;
	}

	/**
	 *
	 */
	public TRADEDATA() {
		super();
		// TODO Auto-generated constructor stub
	}

}
